package com.day22.ex03;

public class FlyableDemo {
    public static void main(String[] args) {
        UseFlyable(new Flyable(){
            @Override
                    public void fly(String s){
                System.out.println(s);
                System.out.println("飞机自驾游");
            }
        });
        System.out.println("------------------");
        UseFlyable((String s)->{
            System.out.println(s);
            System.out.println("飞机自驾游");
        });
    }
    private  static void UseFlyable(Flyable f){
        f.fly("hello");
    }
}
